import {
  debounce
} from '@/utils'
import {
  mapGetters
} from "vuex";
export default {
  data() {
    return {
    }
  },
  computed: {
    ...mapGetters(["autoResize"]),
  },
  watch: {
    autoResize: {
      handler: debounce(function () {
        this.resize()
      }, 150)
    }
  },
  methods: {
    resize() {
      const {
        chart
      } = this
      chart && chart.resize()
    }
  }
}
